package com.hbny.dynamicDataSource.mapper;

import com.hbny.dynamicDataSource.DO.TenantDataBaseConfigDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : Aaron
 * @date : 2022/6/2
 */
public interface TenantInfoMapper {
    @Select("select * from tenant_info")
    List<TenantDataBaseConfigDO> selectAllList();

    @Select("select * from tenant_info where id = #{id}")
    TenantDataBaseConfigDO selectTenantInfoById(@Param("id") String id);
}
